package Game;

public class PeopleComum extends People
{
	enum Comuns
	{
		PINKY,
		ALIEN
	}
	
	Comuns type;
	
	public PeopleComum(int x, int y)
	{
		super(x, y);
		
		type = r.nextInt(2) == 1 ? Comuns.PINKY : Comuns.ALIEN;
		
		switch(type)
		{
			case PINKY:
				animationMoving = LoadImage("/Images/animation_people1_moving_front.png");
				animationIdle = LoadImage("/Images/animation_people1_idle_front.png");
				break;
			case ALIEN:
				animationMoving = LoadImage("/Images/animation_people2_moving_front.png");
				animationIdle = LoadImage("/Images/animation_people2_idle_front.png");
				break;
		}
		
		animationActive = true;
		
		Stop();
	}
	
	@Override
	public void Stop()
	{
		super.Stop();
		
		this.animation = new Animation(animationIdle, 1, 4, 5, x, y, w, h);
		animationActive = true;
	}
	
	@Override
	public void Move()
	{
		super.Move();
		
		animation = new Animation(animationMoving, 2, 4, 3, x, y, w, h);
		animationActive = true;
	}
}
